<?php

require_once 'init.php';

$currTopPage = $page = cf\api\page\get('main');
$smarty->assign('pageText',cf\api\page\getText($page['id']));

$smarty->assign('loginForm',$user ? '' : $smarty->fetch('login.tpl'));

show(
	'index', 
	$page['name'], 
	array(), 
	$page['title'], 
	$page['keywords'], 
	$page['descr']
);

?>